package com.alice.consumer.controller;

import com.alice.consumer.client.UserClient;
import com.alice.consumer.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by caoxuel on 2020/9/23 16:04
 */
@RestController
@RequestMapping("userClient")
@CrossOrigin
public class UserFeignController {

    @Autowired
    private UserClient userClient;

    @PostMapping("/login")
    public Result login(){
        return userClient.login();
    }

    @GetMapping("/info")
    public Result info(){
        return userClient.info();
    }
}
